package com.lb.spring.springsecurity.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by lb on 2018/8/10.
 */
@RestController
public class TestController {
    @GetMapping("/product/{id}")
    public String getProdect(@PathVariable String id){
        return "this is a product" +id;
    }
}
